#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <cstdlib>
using namespace std;
typedef long long ll;
vector<vector<int> > flipChess(vector<vector<int> >& A, vector<vector<int> >& f) {
    for (auto& e : f)
    {
        if (e[0] - 1 >= 1 && e[0] - 1 <= 4)
            A[e[0] - 1][e[1]] = (!(A[e[0] - 1][e[1]] % 2));
        if (e[0] + 1 >= 1 && e[0] + 1 <= 4)
            A[e[0] + 1][e[1]] = (!(A[e[0] + 1][e[1]] % 2));
        if (e[1] + 1 >= 1 && e[1] + 1 <= 4)
            A[e[0]][e[1] + 1] = (!(A[e[0]][e[1] + 1] % 2));
        if (e[1] - 1 >= 1 && e[1] - 1 <= 4)
            A[e[0]][e[1] - 1] = (!(A[e[0]][e[1] - 1] % 2));
    }
    return A;
}
//typedef struct LNode {
//	int data;
//	LNode* next;
//}LNode, *LNodel;
//void Delete(LNode* HL) {
//	LNode* temp = HL;
//	HL = HL->next;
//	delete temp;
//}
int main()
{
    vector<vector<int>> a;
    a.push_back({ 0, 0, 1, 1 });
    a.push_back({ 1, 0, 1, 0 });
    a.push_back({ 0, 1, 1, 0 });
    a.push_back({ 0, 0, 1, 0 });
    flipChess()
}
